#include <iostream>
#include <algorithm>
#include <cstring>
#include <string>
#include <map>
#include <vector>

using namespace std;
using LL = long long;



int main(){
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);

    int T;
    scanf("%d", &T);
    while(T--){
        LL x, y;
        scanf("%lld%lld", &x, &y);
        if((y - 1) % 2 == 0){
            if((x - 1) % 2 == 1){
                printf("Burenka\n");
            }else{
                printf("Tonya\n");
            }
        }else{
            if((x - 1) % 2 == 1){
                printf("Tonya\n");
            }else{
                printf("Burenka\n");
            }
        }
    }
    return 0;
}